<template>
  <div>
    <div class="recommend-title">为你推荐景点</div>
    <ul>
      <li class="item border-bottom" v-for="item of list" :key="item.id">
          <img class="item-img" :src="item.imgUrl">
          <div class="item-desc">
              <div class="item-title">{{item.title}}</div>
              <div class="item-content">{{item.desc}}</div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "HomeWeekend",
  props:{
    list:Array
  },
  data () {
    return{
    }
  }
}
</script>

<style lang="stylus" scoped>
 @import '~styles/mixins.styl';
.recommend-title {
  line-height: .8rem;
  background: #eee;
  margin-top: .2rem;
  text-indent: .2rem;
}
.item{
    overflow: hidden
    display: flex
    height: 4rem
    flex-direction: column
}
.item-img{
    width: 100%
    height: 2.5rem;
    padding: .1rem
}
.item-info{
  flex:1
  flex-direction:column
  padding: .1rem
  min-width: 0
}
.item-title{
  font-size: .40rem
  line-height: .54rem
  ellipsis()
}
.item-desc{
  display: flex
  flex-direction:column
  justify-content: space-between
  line-height: .4rem
  margin-top: .1rem
}
.item-content{
    padding-top: .1rem
    }
</style>